/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simhya.model.store.faststore;

import java.util.ArrayList;
import simhya.matheval.SymbolArray;
import simhya.model.store.Store;
import simhya.model.store.Function;
import simhya.matheval.Expression;

/**
 *
 * @author Luca
 */
public class GenericFunction implements Function {
    private Expression exp;

    public GenericFunction(Expression exp) {
        this.exp = exp;
    }

    public double compute() {
        return exp.computeValue();
    }

    public double compute(SymbolArray vars) {
        return exp.computeValue(vars);
    }

    public ArrayList<Integer> getVariableList() {
        return exp.getListOfVariables();
    }

    public void initialize() {  }
}
